package com.zn.opit.websocketdemo.exception;

import lombok.Getter;

@Getter
public enum WebsocketDemoExceptionTypes implements ExtExceptionInfo {

    UNKNOWN_EXP("UNKNOWN_EXP", "未知异常"),

    USER_OPERATE_FAILED("USER_OPERATE_FAILED", "操作失败"),
    CHUNK_MERGE_FAILED("CHUNK_MERGE_FAILED", "文件合并失败"),
    DATA_NOT_EXISTED("DATA_NOT_EXISTED", "数据不存在"),
    ;

    final String code;
    final String msg;

    WebsocketDemoExceptionTypes(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
